import { AuthCode } from '@/modules/auth';
const contentRoutes = [
  {
    path: '/content',
    name: 'Content',
    component: 'Layout',
    meta: { title: '内容管理系统' },
    redirect: { name: 'ContentKgj' },
    children: [
      {
        path: 'kgj',
        name: 'ContentKgj',
        meta: { title: '考古加内容管理', icon: 'icon-kgj-content', alwaysShow: true },
        redirect: { name: 'DyjNoticeList' },
        children: [
          {
            path: 'articleList',
            name: 'ContentArticleList',
            component: () => import('@/views/crm-content/article-list/index.vue'),
            meta: { title: '文章管理', authCode: AuthCode.CONTENT_ARTICLE_LIST }
          },
          {
            path: 'articleAdd',
            name: 'ContentArticleAdd',
            component: () => import('@/views/crm-content/article-add/index.vue'),
            meta: { title: '新增文章', hide: true, authCode: AuthCode.CONTENT_ARTICLE_CREATE }
          }
        ]
      }

    ]
  }
];

export default contentRoutes;
